package com.patrol.logisticsmanage.ui.appear;

import android.os.Bundle;
import android.view.View;
import android.widget.TextView;

import androidx.annotation.Nullable;

import com.alibaba.android.arouter.facade.annotation.Route;
import com.alibaba.android.arouter.launcher.ARouter;
import com.patrol.logisticsmanage.MainActivity;
import com.patrol.logisticsmanage.R;
import com.patrol.logisticsmanage.ui.base.BaseActivity;

import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;

@Route(path = "/app/AppearEnterActivity")
public class AppearEnterActivity extends BaseActivity {

    @BindView(R.id.tv_title)
    TextView tvTitle;
//    @BindView(R.id.tv_appear)
//    TextView tvAppear;
    @BindView(R.id.tv_todo)
    TextView tvTodo;

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_appear_entrance);
        ButterKnife.bind(this);

        tvTitle.setText("报修服务");
    }

    @OnClick({ R.id.tv_todo, R.id.tv_done,R.id.tv_my_appear,R.id.tv_assign})
    public void onViewClicked(View view) {
        switch (view.getId()) {
//            case R.id.tv_appear:
//                ARouter.getInstance().build("/app/AppearActivity").navigation();
//                break;
            case R.id.tv_todo:
                ARouter.getInstance().build("/app/MyToDoActivity").navigation();
                break;
            case R.id.tv_done:
                ARouter.getInstance().build("/app/MyDoneActivity").navigation();
                break;
            case R.id.tv_my_appear:
                ARouter.getInstance().build("/app/MyAppearActivity").navigation();
                break;
            case R.id.tv_assign:
                ARouter.getInstance().build("/app/WebViewActivity")
                        .withString("url", MainActivity.url4)
                        .withString("title", "报修分配任务")
                        .navigation();
                break;
        }
    }
}
